package net.ifilm.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * 电影表<t>film</t>映射Bean类。
 *
 * User: <a href="wangjunneil@gmail.com">wangjun</a>
 * Date: 2012-08-05 22:47
 */
public class Film {
	
    /**
     * 主键ID
     */
    private int filmId;

    /**
     * 外键地区ID
     */
    private int regionId;

    /**
     * 电影标题
     */
    private String filmName;

    /**
     * 电影简介
     */
    private String filmIntroduce;

    /**
     * 播放时长
     */
    private String filmTime;

    /**
     * 海报路径
     */
    private String imagePath;

    public String getMimagePath() {
        return mimagePath;
    }

    public void setMimagePath(String mimagePath) {
        this.mimagePath = mimagePath;
    }

    private String mimagePath;

    /**
     * 上映时间
     */
    private String showTime;

    /**
     * 是否限制级，0不限，1门限级，2限制级
     */
    private int islimit;

    /**
     * 是否热门，0不是，1是

     */
    private int isHot;

    /**
     * 是否高清

     */
    private int isClear;

    /**
     * 播放次数
     */
    private int playNum;

    /**
     * 以分号分割的关键字
     */
    private String tags;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 启用标志，0启用，1禁用
     */
    private int activeFlag;

    /**
     * 计算出的电影评分
     */
    private double score;

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    private int type;

    // ---------------------------------------------
    
    private List<FilmDiscuss> filmDiscussList = new ArrayList<FilmDiscuss>();

    private List<FilmType> filmTypeList = new ArrayList<FilmType>();

    private List<FilmPath> filmPathList = new ArrayList<FilmPath>();
    
    private List<Star> starList = new ArrayList<Star>();

    private List<FilmScore> scoreList = new ArrayList<FilmScore>();

    private Region region;

    private SlideFilm slideFilm;
    
    // --------------------------------------------- setter/getter

    public int getFilmId() {
        return filmId;
    }

    public void setFilmId(int filmId) {
        this.filmId = filmId;
    }

    public int getRegionId() {
        return regionId;
    }

    public void setRegionId(int regionId) {
        this.regionId = regionId;
    }

    public String getFilmName() {
        return filmName;
    }

    public void setFilmName(String filmName) {
        this.filmName = filmName;
    }

    public String getFilmIntroduce() {
        return filmIntroduce;
    }

    public void setFilmIntroduce(String filmIntroduce) {
        this.filmIntroduce = filmIntroduce;
    }

    public String getFilmTime() {
        return filmTime;
    }

    public void setFilmTime(String filmTime) {
        this.filmTime = filmTime;
    }

    public String getImagePath() {
        return imagePath;
    }

    public void setImagePath(String imagePath) {
        this.imagePath = imagePath;
    }

    public String getShowTime() {
        return showTime;
    }

    public void setShowTime(String showTime) {
        this.showTime = showTime;
    }

    public int getIslimit() {
        return islimit;
    }

    public void setIslimit(int islimit) {
        this.islimit = islimit;
    }

    public int getHot() {
        return isHot;
    }

    public void setHot(int hot) {
        isHot = hot;
    }

    public int getPlayNum() {
        return playNum;
    }

    public void setPlayNum(int playNum) {
        this.playNum = playNum;
    }

    public String getTags() {
        return tags;
    }

    public void setTags(String tags) {
        this.tags = tags;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public int getActiveFlag() {
        return activeFlag;
    }

    public void setActiveFlag(int activeFlag) {
        this.activeFlag = activeFlag;
    }

    public List<FilmDiscuss> getFilmDiscussList() {
        return filmDiscussList;
    }

    public void setFilmDiscussList(List<FilmDiscuss> filmDiscussList) {
        this.filmDiscussList = filmDiscussList;
    }

    public Region getRegion() {
		return region;
	}

	public void setRegion(Region region) {
		this.region = region;
	}

    public int getClear() {
        return isClear;
    }

    public void setClear(int clear) {
        isClear = clear;
    }

    public List<FilmType> getFilmTypeList() {
        return filmTypeList;
    }

    public void setFilmTypeList(List<FilmType> filmTypeList) {
        this.filmTypeList = filmTypeList;
    }

    public List<FilmPath> getFilmPathList() {
        return filmPathList;
    }

    public void setFilmPathList(List<FilmPath> filmPathList) {
        this.filmPathList = filmPathList;
    }

    public List<Star> getStarList() {
        return starList;
    }

    public void setStarList(List<Star> starList) {
        this.starList = starList;
    }

    public SlideFilm getSlideFilm() {
        return slideFilm;
    }

    public void setSlideFilm(SlideFilm slideFilm) {
        this.slideFilm = slideFilm;
    }

    public double getScore() {
        return score;
    }

    public void setScore(double score) {
        this.score = score;
    }

    public List<FilmScore> getScoreList() {
        return scoreList;
    }

    public void setScoreList(List<FilmScore> scoreList) {
        this.scoreList = scoreList;
    }

	@Override
	public String toString() {
		StringBuffer sb = new StringBuffer();
		sb.append("Film [filmId=").append(filmId).append(",filmName=").append(filmName)
			.append(",filmTime=").append(filmTime).append(",showTime=").append(showTime)
			.append(",imagePath=").append(imagePath).append(']');
		return sb.toString();
	}
	

} ///:~
